<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>

 <%
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath();
 %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 		<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/updateVideo.css" />
        <link rel="stylesheet" href="<%=basePath %>/css/list.css">
		<link href="<%=basePath %>/css/H-ui.min.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath %>/css/formsCSS.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/simditor.css" />
		<script src="<%=basePath%>/lib/My97DatePicker/WdatePicker.js"></script>
		<script src="<%=basePath %>/js/jquery.min.js"></script>
		<script src="<%=basePath %>/js/formsJS.js"></script>
		
		<script type="text/javascript" src="<%=basePath %>/js/module.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/hotkeys.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/uploader.js"></script>
		<script type="text/javascript" src="<%=basePath %>/js/simditor.js"></script>
		<script type="text/javascript" src="<%=basePath %>js/H-ui.js"></script>

<script type="text/javascript">

function checkForm(f){

	
	if(f.coinValue.value.replace(/\s/g,'') == ''){
		alert("铜钱价值不能为空");
		return false;
	}
	if(f.remarkInfo.value.replace(/\s/g,'') == ''){
		alert("请详细记录备注信息");
		return false;
	}
	 
 
	return true;
}

</script>
</head>
<body>
		<div class="connect_wrap">
    		<h3 style= "text-align: center;">铜钱记录维护</h3>
			<div class="row cl" style="max-width:88%;margin-left:8%;">
			<div class="labelText"></div>
				<form action="<%=basePath%>/coinLog/coinLogAdd" method="post" onsubmit="return checkForm(this)"
					enctype="multipart/form-data">
					<div class="col-sm-4"></div>
	    					<div class="col-sm-4">
	    							<div class="boxs">
												<input type="text" name="id" value="${coinLog.id}"><br />
												
												<input type="text" class="inputBox" placeholder="用户电话" name="telephone" value="${coinLog.telephone}" >
												<input type="text" class="inputBox" placeholder="订单编号" name="orderCode" value="${coinLog.orderCode}" >
 												<select id="flowFlag" name="flowFlag" class="selectBox"  >
												  	<option value="">流向标识</option>									
										  			<option value="1" ${coinLog.flowFlag == 1 ? 'selected="selected"' : '' }>赚</option>
										  			<option value="2" ${coinLog.flowFlag == 2 ? 'selected="selected"' : '' }>花</option>
												</select>
												
												<select  name="resource" class="selectBox"  >
												  	<option value="">来源或用途</option>									
										  			<option value="1" ${coinLog.resource == 1 ? 'selected="selected"' : '' }>购物 </option>
										  			<option value="2" ${coinLog.resource == 2 ? 'selected="selected"' : '' }>邀请好友</option>
												</select>
												
 												<input type="text" class="inputBox" placeholder="铜钱价值" name="coinValue" id="coinValue" value="${coinLog.coinValue}" >
 												<textarea id="remarkInfo" name="remarkInfo" class="textareaBox" placeholder="备注信息"  >${coinLog.remarkInfo}</textarea>
												 
												<br /><br />
												<input type="submit" value="确定" class="true" />
												<input type="button"  class="false" value="取消" onclick="window.history.go(-1)">
										</div>
								</div>
					</form>
			</div>
	</div>
	
</body>
</html>